def schedule(jobs):
    return sorted(jobs, key=lambda x: x[1])

if __name__ == '__main__':
    jobs = [
        (1, 15),
        (2, 8),
        (3, 3),
        (4, 10)
    ]
    print(schedule(jobs))
